package com.neu.credit.creditscore.entity.hospital;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@TableName("examination_orders")
@Schema(name = "ExaminationOrders", description = "检查单信息表")
public class ExaminationOrders {

    @Schema(description = "检查单ID，自增主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "预约ID")
    private Integer appointmentId;

    @Schema(description = "医生ID")
    private Integer doctorId;

    @Schema(description = "检查项目ID")
    private Integer itemId;

    @Schema(description = "检查单状态（1-待检查，2-已完成，3-已取消）")
    private Integer orderStatus;

    @Schema(description = "创建时间")
    private LocalDateTime createdAt;

    @Schema(description = "更新时间")
    private LocalDateTime updatedAt;
    @TableField(exist = false)
    @Schema(description = "检查项详细信息")
    private ExaminationItems examinationItem;
}